﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkFlowForm.aspx.cs" Inherits="iSun.WebApp.Extend.WorkFlowForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
     <link rel="stylesheet" type="text/css" href="../Scripts/yui_2.9.0/build/reset-fonts-grids/reset-fonts-grids.css" />
    <link rel="stylesheet" type="text/css" href="../Scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../Scripts/yui_2.9.0/build/menu/assets/skins/sam/menu.css" />
    <link rel="stylesheet" type="text/css" href="../Scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../Scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link href="../Styles/css.index.css" rel="stylesheet" type="text/css" />
    <link href="../Scripts/EasyUI/themes/default/easyui.css" rel="Stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            font-size: 12px;
        }
        table
        {
            border: 0;
            border-collapse: collapse;
        }
        td
        {
            font: normal 12px/17px Arial;
            padding: 2px;
            width: 100px;
        }
        th
        {
            font: bold 12px/17px Arial;
            text-align: left;
            padding: 4px;
            border-bottom: 1px solid #333;
        }
        .even
        {
            background: #FFF38F;
        }
        /* 偶数行样式*/
        .odd
        {
            background: #e0ecf8;
        }
        /* 奇数行样式*/
        .selected
        {
            background: #FFFFEA;
            color: blue;
            cursor: pointer;
        }
        /*通用超级链接各种样式*/
        a:visited
        {
            text-decoration: none;
            color: 143B5A;
        }
        a:active
        {
            text-decoration: none;
            color: 143B5A;
        }
        a:hover
        {
            text-decoration: none;
            color: #FE611B;
        }
        a:link
        {
            text-decoration: none;
            color: 143B5A;
        }
    </style>
    <!-- OPTIONAL: Connection Manager (enables XHR for DataSource) -->
    <!-- OPTIONAL: Connection Manager (enables XHR for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/yahoo/yahoo.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/event/event-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <!-- OPTIONAL: JSON Utility (for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <!-- OPTIONAL: Connection Manager (enables XHR for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <!-- OPTIONAL: Get Utility (enables dynamic script nodes for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <!-- OPTIONAL: Drag Drop (enables resizeable or reorderable columns) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <!-- OPTIONAL: Calendar (enables calendar editors) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/calendar/calendar-min.js"></script>
    <!-- Source files -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/resize/resize-min.js"></script>
     <script src="../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
</head>
<body  class="yui-skin-sam">
    <form id="form1" runat="server">
    <div>
      <div id="dialog1" class="yui-pe-content"  >
        <div class="hd">
           数据编辑</div>
        <div class="bd">
            <iframe id="EditUIWindow" frameborder="0" src="../Extend/AutoLoadForm.aspx?entity=CrmPay&action=insert&formid=0EC44D4B-281F-5ED4-47D6-46C5B70C54C2" style="width: 100%; height: 100%;
                margin: 0px; padding: 0px;"></iframe>
        </div>
    </div>
 
  
        
    <div id="dialog2" class="yui-pe-content" >
        <div class="hd">
            选择基本信息:</div>
        <div class="bd">
            <iframe id="EditUIWindow1" frameborder="0" src="" style="width: 100%; height: 100%;
                margin: 0px; padding: 0px;"></iframe>
        </div>
    </div>


    </div>
    
    <script type="text/javascript">
        $(document).ready(function () {
            load();
        })
        var load = function () {

            //弹出对话框
            YAHOO.namespace("example.container");

            var handleSuccess = function (o) {
                var response = o.responseText;
                response = response.split("<!")[0];
                document.getElementById("resp").innerHTML = response;
            };
            var handleCancel = function () {
                this.cancel();
            };
            var handleFailure = function (o) {
                alert("Submission failed: " + o.status);
            };
            var handleSubmit1 = function () {
                var editwindow = document.getElementById("EditUIWindow1");
                if (editwindow) {
                    editwindow.contentWindow.ChooseInfo();
                }
                this.cancel();
                //YAHOO.example.container.dialog2.hide();
            };
            var const_EditWindowWidth = $(document).width() - 20; //"720px",
            const_EditWindowHeight = $(document).height() - 20; //"600px";
            // Remove progressively enhanced content class, just before creating the module
            YAHOO.util.Dom.removeClass("dialog1", "yui-pe-content");

            // Instantiate the Dialog
            YAHOO.example.container.dialog1 = new YAHOO.widget.Dialog("dialog1",
							    { width: const_EditWindowWidth,
							        height: const_EditWindowHeight,
							        fixedcenter: true,
							        visible: false,
							        draggable: false,
							        close: false,
							        autofillheight: "body",
							        constraintoviewport: true

							    });
            YAHOO.example.container.dialog2 = new YAHOO.widget.Dialog("dialog2",
							    { width: "550px",
							        height: "450px",
							        fixedcenter: true,
							        visible: false,
							        draggable: true,
							        close: true,
							        autofillheight: "body",
							        constraintoviewport: true,
							        buttons: [{ text: "保存", handler: handleSubmit1, isDefault: true },
								          { text: "取消", handler: handleCancel}]
							    });
            // Wire up the success and failure handlers
            YAHOO.example.container.dialog1.callback = { success: handleSuccess,
                failure: handleFailure
            };
            // Render the Dialog
            YAHOO.example.container.dialog1.render();
            YAHOO.example.container.dialog2.render();
            YAHOO.example.container.dialog1.show();


        }

        /* 对应的方法和ID*/
        var _fn, _id;
        function ShowDialog(fn, id) {
            _fn = fn;
            _id = id;
            YAHOO.example.container.dialog2.show();
        }

    </script>
    </form>
</body>
</html>
